using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Net;

namespace Geoconcepts.Common
{
    public class Network
    {
        
        public static bool ConnectionExists()
        {
            try
            {
                System.Net.Sockets.TcpClient tcpClient = new System.Net.Sockets.TcpClient("www.google.com", 80);
                tcpClient.Close();
                return true;
            }
            catch (System.Exception ex)
            {
                return false;
            }
        }

    }
}
